home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / autocomplete_manager-2.3-fx.xpi / chrome / acmanager.jar / content / browser-overlay.xul < prev    next >
Extensible Markup Language  |  2008-03-14  |  4KB  |  79 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.    - Version: MPL 1.1
  5.    -
  6.    - The contents of this file are subject to the Mozilla Public License Version
  7.    - 1.1 (the "License"); you may not use this file except in compliance with
  8.    - the License. You may obtain a copy of the License at
  9.    - http://www.mozilla.org/MPL/
  10.    -
  11.    - Software distributed under the License is distributed on an "AS IS" basis,
  12.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.    - for the specific language governing rights and limitations under the License.
  14.    -
  15.    - The Original Code is the Autocomplete Manager extension.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - Nikitas Liogkas <nikitas@acm.org>.
  19.    - Portions created by the Initial Developer are Copyright (C) 2005-2008
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s): James Ravn
  23.    - Version 2.3
  24.    -
  25.    - ***** END LICENSE BLOCK ***** -->
  26.  
  27. <!-- stylesheets have to be outside the overlay -->
  28. <?xml-stylesheet href="chrome://acmanager/skin/acmanager.css" type="text/css"?> 
  29.  
  30. <overlay id="browser-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  31.  
  32.   <script type="application/javascript; version=1.7" src="chrome://acmanager/content/rdfUtils.js"/>
  33.   <script type="application/javascript" src="chrome://acmanager/content/acpopup.js"/>
  34.   <script type="application/javascript" src="chrome://acmanager/content/options.js"/>
  35.   <script type="application/javascript" src="chrome://acmanager/content/aggregator.js"/>
  36.   <script type="application/javascript" src="chrome://acmanager/content/filterer.js"/> 
  37.   
  38.   <!-- custom suggestion list popup -->
  39.   <window id="main-window">
  40.     <popup
  41.       style="-moz-binding: url('chrome://acmanager/content/acpopup.xml#acm_popup')"
  42.       id="ACM_Popup"
  43.       ignorekeys="true"
  44.       onclick="acm_popupMouseClick(event, this);"
  45.       onmousemove="acm_popupMouseMove(event);"
  46.       onpopuphidden="acm_popupExists = acm_preventPopup = false; 
  47.                      if (acm_getPreference(ACM_INLINE)) {
  48.                        const urlbar = document.getElementById('urlbar');
  49.                        urlbar.setSelectionRange(urlbar.textLength, urlbar.textLength); 
  50.                      }
  51.                      acm_maxrows = acm_getPreference(ACM_MAXROWS); 
  52.                      window.addEventListener('keypress', ctrlNumberTabSelection, false);"/>
  53.   </window>  
  54.  
  55.   <commandset id="mainCommandSet">
  56.     <!-- command to open the options dialog, if there is not one open already -->
  57.     <command id="cmd_ACManager"
  58.       oncommand="if (!acm_dialogOpen) open('chrome://acmanager/content/options.xul', '', 
  59.                                            'chrome, toolbar, resizable');"/>
  60.     <!-- command to temporarily disable the popup -->
  61.     <command id="cmd_focusURLBar" 
  62.       oncommand="document.getElementById('urlbar').select(); acm_disablePopup = true;"/>
  63.   </commandset>
  64.  
  65.   <!-- <menupopup id="menu_ToolsPopup">    
  66.     <menuitem label="Autocomplete Manager" insertbefore="sanitizeSeparator"
  67.       class="menuitem-iconic" image="chrome://acmanager/skin/acmanager-icon16.png"
  68.       accesskey="M" key="key_ACManager" command="cmd_ACManager"/>
  69.   </menupopup> -->
  70.  
  71.   <keyset id="mainKeyset">
  72.     <!-- keyboard shortcut to open the options dialog -->
  73.     <key id="key_ACManager" modifiers="accel,shift" key="M" command="cmd_ACManager"/>
  74.     <!-- keyboard shortcut to temporarily disable the popup -->
  75.     <key modifiers="alt" key="L" command="cmd_focusURLBar"/>
  76.   </keyset>
  77.  
  78. </overlay>
  79.